package project.bob.screen;

import java.awt.Graphics;

import project.bob.Input;

public class InventoryScreen extends Screen {
	
    private GameScreen parent;
    
    public InventoryScreen(GameScreen parent) {
        this.parent = parent;
    }
    public void render(Graphics g)
    {
        parent.render(g);
        parent.level.player.inv.render(g,this);
    }
        
    public void tick(Input input)
    {
        if (!input.oldButtons[Input.I] && input.buttons[Input.I]) {
            setScreen(parent);
            parent.level.player.inv.hasFocus = false;
            return;
        }
        parent.level.player.inv.tick(input);
    }
}
